Skip to content

Instantly share code, notes, and snippets.

@joshinihal
joshinihal / addresses.json
Created January 19, 2026 13:36
Dummy USA addresses, taken and compiled from the internet
[
{"addressLine":["47 W 13th St"],"city":"New York","stateProvinceCode":"NY","postalCode":"10011","countryCode":"US"},
{"addressLine":["20 Cooper Square"],"city":"New York","stateProvinceCode":"NY","postalCode":"10003","countryCode":"US"},
{"addressLine":["1 E 2nd St"],"city":"New York","stateProvinceCode":"NY","postalCode":"10003","countryCode":"US"},
{"addressLine":["75 3rd Ave"],"city":"New York","stateProvinceCode":"NY","postalCode":"10003","countryCode":"US"},
{"addressLine":["Metrotech Center"],"city":"Brooklyn","stateProvinceCode":"NY","postalCode":"11201","countryCode":"US"},
{"addressLine":["721 Broadway"],"city":"New York","stateProvinceCode":"NY","postalCode":"10003","countryCode":"US"},
{"addressLine":["40 E 7th St"],"city":"New York","stateProvinceCode":"NY","postalCode":"10003","countryCode":"US"},
{"addressLine":["838 Broadway"],"city":"New York","stateProvinceCode":"NY","postalCode":"10003","countryCode":"US"},
{"addressLine":["69 W 9th St"],"city":"New York","stateProvinceCo
@a-c-m
a-c-m / reflection.md
Last active January 19, 2026 13:37
reflection.md - a way to have claude-code self improve its context.

You are an expert in prompt engineering, specializing in optimizing AI code assistant instructions. Your task is to analyze and improve the instructions for Claude Code. Follow these steps carefully:

  1. Analysis Phase: Review the chat history in your context window.

Then, examine the current Claude instructions, commands and config <claude_instructions> /CLAUDE.md /.claude/commands/*

#!/bin/zsh
# WARNING! The script is meant to show how and what can be disabled. Don’t use it as it is, adapt it to your needs.
# Credit: Original idea and script disable.sh by pwnsdx https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3
# Disabling unwanted services on macOS Big Sur (11), macOS Monterey (12), macOS Ventura (13) and macOS Sonoma (14)
# Disabling SIP is required ("csrutil disable" from Terminal in Recovery)
# Modifications are written in /private/var/db/com.apple.xpc.launchd/ disabled.plist, disabled.501.plist
# To revert, delete /private/var/db/com.apple.xpc.launchd/ disabled.plist and disabled.501.plist and reboot; sudo rm -r /private/var/db/com.apple.xpc.launchd/*
# user
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active January 19, 2026 13:35
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under Discover -> Quests
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@guillermodotn
guillermodotn / ActivityWatch_on_Fedora_Wayland.md
Last active January 19, 2026 13:34
ActivityWatch as a user-level systemd service on Fedora (Wayland)

A little personal guide to running ActivityWatch on Fedora GNOME desktop with Wayland as the window server in an easy and convenient way.

Installation of ActivityWatch

To install ActivityWatch, first enable the Fedora COPR repository, then follow the steps shown on the wojnilowicz/activitywatch COPR project page.

sudo dnf copr enable wojnilowicz/activitywatch 

Next, add the following GNOME extensions:

@Zmegolaz
Zmegolaz / comments2xlsx.vb
Last active January 19, 2026 13:33 — forked from razorgoto/comments2xlsx.vb
Exports comments from a MS Word document to Excel and associates them with the heading paragraphs
Sub exportComments()
' Forked from https://gist.github.com/razorgoto/cff2ffd5da93220c643c, updated to work with Library 16.0.
' This also fixes a bug where it crashed if there was a comment on the very first header.
' Exports comments from a MS Word document to Excel and associates them with the heading paragraphs
' they are included in. Useful for outline numbered section, i.e. 3.2.1.5....
' Thanks to Graham Mayor, http://answers.microsoft.com/en-us/office/forum/office_2007-customize/export-word-review-comments-in-excel/54818c46-b7d2-416c-a4e3-3131ab68809c
' and Wade Tai, http://msdn.microsoft.com/en-us/library/aa140225(v=office.10).aspx
' Need to set a VBA reference to "Microsoft Excel 16.0 Object Library". 14.0 works too.
' Go to the Tools Menu, and click "Reference"
@bensquire
bensquire / countries.json
Created October 20, 2016 11:03
JSON Country List based on the ISO-3366-1 Alpha-3 Codes, with eu countries marked
[
{
"code": "AFG",
"name": "Afghanistan",
"eu": false
},
{
"code": "ALA",
"name": "Åland Islands",
"eu": false
@aashari
aashari / 00 - Cursor AI Prompting Rules.md
Last active January 19, 2026 13:29
Cursor AI Prompting Rules - This gist provides structured prompting rules for optimizing Cursor AI interactions. It includes three key files to streamline AI behavior for different tasks.

The Autonomous Agent Prompting Framework

This repository contains a disciplined, evidence-first prompting framework designed to elevate an Agentic AI from a simple command executor to an Autonomous Principal Engineer.

The philosophy is simple: Autonomy through discipline. Trust through verification.

This framework is not just a collection of prompts; it is a complete operational system for managing AI agents. It enforces a rigorous workflow of reconnaissance, planning, safe execution, and self-improvement, ensuring every action the agent takes is deliberate, verifiable, and aligned with senior engineering best practices.

I also have Claude Code prompting for your reference: https://gist.github.com/aashari/1c38e8c7766b5ba81c3a0d4d124a2f58

@yamnikov-oleg
yamnikov-oleg / LICENSE
Last active January 19, 2026 13:24
Shared (interprocess) mutexes on Linux
MIT License
Copyright (c) 2018 Oleg Yamnikov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@CAFxX
CAFxX / golang_minimize_allocations.md
Last active January 19, 2026 13:20
Minimize allocations in Go

📂 Minimize allocations in Go

A collection of tips for when you need to minimize the number of allocations in your Go programs.

Use the go profiler to identify which parts of your program are responsible for most allocations.

Caution

Never apply these tricks blindly (i.e. without measuring the actual performance benefit/impact).

[!NOTE]